www.gusucode.com > Piwik 网站流量统计系统 v2.9.1PHP源码程序 > Piwik 网站流量统计系统 v2.9.1/How to install Piwik.html/piwik/vendor/mnapoli/php-di/src/DI/Definition/ClassDefinition/PropertyInjection.php
<?php /** * PHP-DI * * @link http://php-di.org/ * @copyright Matthieu Napoli (http://mnapoli.fr/) * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) */ namespace DI\Definition\ClassDefinition; /** * Describe an injection in a class property. * * @author Matthieu Napoli <matthieu@mnapoli.fr> */ class PropertyInjection { /** * Property name * @var string */ private $propertyName; /** * Value that should be injected in the property * @var mixed */ private $value; /** * @param string $propertyName Property name * @param mixed $value Value that should be injected in the property */ public function __construct($propertyName, $value) { $this->propertyName = (string) $propertyName; $this->value = $value; } /** * @return string Property name */ public function getPropertyName() { return $this->propertyName; } /** * @return string Value that should be injected in the property */ public function getValue() { return $this->value; } }